package com.hiq.gogo;

public class ScheduleItem {
	
	private int hours;
	private int minutes;
	private String msg;
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getHours() {
		return hours;
	}
	
	public void setHours(int hours) {
		this.hours = hours;
	}
	
	public int getMinutes() {
		return minutes;
	}
	
	public void setMinutes(int minutes) {
		this.minutes = minutes;
	}
	
	public ScheduleItem(int hours, int minutes) {
		super();
		this.hours = hours;
		this.minutes = minutes;
	}

	public ScheduleItem(String time, String msg2) {
		super();
		String [] parts = time.split("-");
		this.hours   = Integer.parseInt(parts[0]);
		this.minutes = Integer.parseInt(parts[1]);
		this.msg     = msg2;
	}
	
	public boolean isItTime(int hours, int minutes){
		return (getHours() == hours && getMinutes() == minutes);
	}
}
